import Icon, {AppstoreOutlined, HighlightOutlined, UserOutlined, DiffOutlined, PlusOutlined,OrderedListOutlined} from '@ant-design/icons';

export interface MenuConfig {
  name: string,
  icon: typeof AppstoreOutlined | null,
  to?: string,
  children?: MenuConfig[]
}

export const menusConfig: MenuConfig[] = [
  {
    name: "首页",
    icon: AppstoreOutlined,
    to: "/Main"
  },
  {
    name: "学科",
    icon: HighlightOutlined,
    to: "/SubjectManage"
  },
  {
    name: "试卷管理",
    icon: DiffOutlined,
    children: [
      {
        name: "添加试卷",
        icon: PlusOutlined,
        to: "/PaperAdd"
      },
      {
        name: "试卷列表",
        icon: OrderedListOutlined,
        to: "/Paper"
      }
    ]
  },
  {
    name: "用户管理",
    icon: UserOutlined,
    to: "/User"
  },

]
